3.2.20 \(\int \frac {\sin (a+\frac {b}{x^2})}{x} \, dx\) [120]

Optimal. Leaf size=25 \[ -\frac {1}{2} \text {Ci}\left (\frac {b}{x^2}\right ) \sin (a)-\frac {1}{2} \cos (a) \text {Si}\left (\frac {b}{x^2}\right ) \]

[Out]

-1/2*cos(a)*Si(b/x^2)-1/2*Ci(b/x^2)*sin(a)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3458, 3457, 3456} \begin {gather*} -\frac {1}{2} \sin (a) \text {CosIntegral}\left (\frac {b}{x^2}\right )-\frac {1}{2} \cos (a) \text {Si}\left (\frac {b}{x^2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sin[a + b/x^2]/x,x]

[Out]

-1/2*(CosIntegral[b/x^2]*Sin[a]) - (Cos[a]*SinIntegral[b/x^2])/2

Rule 3456

Int[Sin[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[SinIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3457

Int[Cos[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[CosIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3458

Int[Sin[(c_) + (d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Dist[Sin[c], Int[Cos[d*x^n]/x, x], x] + Dist[Cos[c], Int[Si
n[d*x^n]/x, x], x] /; FreeQ[{c, d, n}, x]

Rubi steps

\begin {align*} \int \frac {\sin \left (a+\frac {b}{x^2}\right )}{x} \, dx &=\cos (a) \int \frac {\sin \left (\frac {b}{x^2}\right )}{x} \, dx+\sin (a) \int \frac {\cos \left (\frac {b}{x^2}\right )}{x} \, dx\\ &=-\frac {1}{2} \text {Ci}\left (\frac {b}{x^2}\right ) \sin (a)-\frac {1}{2} \cos (a) \text {Si}\left (\frac {b}{x^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 25, normalized size = 1.00 \begin {gather*} \frac {1}{2} \left (-\text {Ci}\left (\frac {b}{x^2}\right ) \sin (a)-\cos (a) \text {Si}\left (\frac {b}{x^2}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sin[a + b/x^2]/x,x]

[Out]

(-(CosIntegral[b/x^2]*Sin[a]) - Cos[a]*SinIntegral[b/x^2])/2

________________________________________________________________________________________

Maple [A]
time = 0.04, size = 22, normalized size = 0.88

method result size
derivativedivides \(-\frac {\cos \left (a \right ) \sinIntegral \left (\frac {b}{x^{2}}\right )}{2}-\frac {\cosineIntegral \left (\frac {b}{x^{2}}\right ) \sin \left (a \right )}{2}\) \(22\)
default \(-\frac {\cos \left (a \right ) \sinIntegral \left (\frac {b}{x^{2}}\right )}{2}-\frac {\cosineIntegral \left (\frac {b}{x^{2}}\right ) \sin \left (a \right )}{2}\) \(22\)
risch \(-\frac {i {\mathrm e}^{i a} \expIntegral \left (1, -\frac {i b}{x^{2}}\right )}{4}+\frac {{\mathrm e}^{-i a} \pi \,\mathrm {csgn}\left (\frac {b}{x^{2}}\right )}{4}-\frac {{\mathrm e}^{-i a} \sinIntegral \left (\frac {b}{x^{2}}\right )}{2}+\frac {i \expIntegral \left (1, -\frac {i b}{x^{2}}\right ) {\mathrm e}^{-i a}}{4}\) \(63\)
meijerg \(-\frac {\cos \left (a \right ) \sinIntegral \left (\frac {b}{x^{2}}\right )}{2}-\frac {\sqrt {\pi }\, \sin \left (a \right ) \left (\frac {2 \gamma -4 \ln \left (x \right )+\ln \left (b^{2}\right )}{\sqrt {\pi }}-\frac {2 \gamma }{\sqrt {\pi }}-\frac {2 \ln \left (2\right )}{\sqrt {\pi }}-\frac {2 \ln \left (\frac {b}{2 x^{2}}\right )}{\sqrt {\pi }}+\frac {2 \cosineIntegral \left (\frac {b}{x^{2}}\right )}{\sqrt {\pi }}\right )}{4}\) \(72\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(a+b/x^2)/x,x,method=_RETURNVERBOSE)

[Out]

-1/2*cos(a)*Si(b/x^2)-1/2*Ci(b/x^2)*sin(a)

________________________________________________________________________________________

Maxima [C] Result contains complex when optimal does not.
time = 0.35, size = 43, normalized size = 1.72 \begin {gather*} \frac {1}{4} \, {\left (i \, {\rm Ei}\left (\frac {i \, b}{x^{2}}\right ) - i \, {\rm Ei}\left (-\frac {i \, b}{x^{2}}\right )\right )} \cos \left (a\right ) - \frac {1}{4} \, {\left ({\rm Ei}\left (\frac {i \, b}{x^{2}}\right ) + {\rm Ei}\left (-\frac {i \, b}{x^{2}}\right )\right )} \sin \left (a\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x^2)/x,x, algorithm="maxima")

[Out]

1/4*(I*Ei(I*b/x^2) - I*Ei(-I*b/x^2))*cos(a) - 1/4*(Ei(I*b/x^2) + Ei(-I*b/x^2))*sin(a)

________________________________________________________________________________________

Fricas [A]
time = 0.44, size = 29, normalized size = 1.16 \begin {gather*} -\frac {1}{4} \, {\left (\operatorname {Ci}\left (\frac {b}{x^{2}}\right ) + \operatorname {Ci}\left (-\frac {b}{x^{2}}\right )\right )} \sin \left (a\right ) - \frac {1}{2} \, \cos \left (a\right ) \operatorname {Si}\left (\frac {b}{x^{2}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x^2)/x,x, algorithm="fricas")

[Out]

-1/4*(cos_integral(b/x^2) + cos_integral(-b/x^2))*sin(a) - 1/2*cos(a)*sin_integral(b/x^2)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sin {\left (a + \frac {b}{x^{2}} \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x**2)/x,x)

[Out]

Integral(sin(a + b/x**2)/x, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x^2)/x,x, algorithm="giac")

[Out]

integrate(sin(a + b/x^2)/x, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} -\frac {\sin \left (a\right )\,\mathrm {cosint}\left (\frac {b}{x^2}\right )}{2}-\frac {\cos \left (a\right )\,\mathrm {sinint}\left (\frac {b}{x^2}\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(a + b/x^2)/x,x)

[Out]

- (sin(a)*cosint(b/x^2))/2 - (cos(a)*sinint(b/x^2))/2

________________________________________________________________________________________